﻿#pragma once


// CElementListView 视图

class CElementListView : public CListView
{
	DECLARE_DYNCREATE(CElementListView)

protected:
	CElementListView();           // 动态创建所使用的受保护的构造函数
	virtual ~CElementListView();

public:
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	void	Init();

public:
	void	AddCheckElement(ck::CheckElement* pElement);


	void	Populate(unsigned int ckCode, CString strText);

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnNMClick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMDbClick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMRClick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);


	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
};


